/* 样式初始化 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
li {
  list-style: none;
}

body {
  background-color: #00020b;
  // 默认的文字颜色
  color: #4c9bfd;
}

/* 封装一个边框图片的类名 */
.panel {
  /* 1. 边框属性 */
  border: solid;
  /* 2. 边框盒子模型 */
  box-sizing: border-box;
  /* 3.1 引入边框图片资源 */
  border-image-source: url(../images/border.png);
  /* 3.2 设置边框图片宽度，1:1 比例，否则可能会出现图片变形*/
  border-image-width: 54px 50px 30px 140px;
  /* 3.3 🧨边框图片切换 */
  border-image-slice: 54 50 30 140;
  /* 3.4 修改成平铺方式 */
  border-image-repeat: repeat;
}
// 面板标题的封装
.panel_title {
  height: 60px;
  padding: 0 35px;
  display: flex;
  align-items: center;
  font-size: 20px;
  color: #fff;
  .line {
    width: 2px;
    height: 22px;
    background-color: #00f2f1;
    margin: 0 25px;
  }
  .dis_active {
    color: #0b39c4;
  }
}
// 矩形盒子
.rect {
  width: 168px;
  height: 236px;
  background: url(../images/rect.png) no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  .rect_item {
    padding-left: 30px;
    &:nth-child(1) .icon-dot {
      color: #ed3f35;
    }
    &:nth-child(2) .icon-dot {
      color: #eacf19;
    }
  }
  .rect_item_number {
    font-size: 26px;
    font-weight: normal;
    color: #fff;
  }
  .rect_item_text {
    font-size: 14px;
    margin-top: 10px;
  }
}

//  1.0 头部 logo
.header_logo {
  width: 100%;
}
// 2.0 大容器
.container {
  display: flex;
  padding: 0 20px;
  .container_left {
    width: 552px;
    margin-top: -26px;
    //模块1：设备模块
    .device {
      height: 110px;
      display: flex;
      justify-content: space-evenly;
      align-items: center;
      .device_item {
        h4 {
          font-size: 22px;
          font-weight: normal;
          color: #fff;
        }
        p {
          margin-top: 10px;
          font-size: 14px;
          .icon-dot {
            margin-right: 3px;
          }
        }
        // 🧨注意：nth-child(n) 是选中父级元素的第n个孩子
        &:nth-child(1) .icon-dot {
          color: #006cff;
        }
        &:nth-child(2) .icon-dot {
          color: #6acca3;
        }
        &:nth-child(3) .icon-dot {
          color: #6acca3;
        }
        &:nth-child(4) .icon-dot {
          color: #ed3f35;
        }
      }
    }
    //模块2：监控
    .monitoring {
      height: 480px;
      margin: 20px 0;
      display: flex;
      // 改变主轴方向后，垂直方向的子元素也可通过 flex:1 分配剩余高度
      flex-direction: column;
      .list_head {
        padding: 0 35px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        color: #40caf1;
        background-color: rgba(255, 255, 255, 0.2);
      }
      .list_body {
        padding: 0 35px;
        overflow: hidden;
        flex: 1;
        .list_item {
          display: flex;
          align-items: center;
          justify-content: space-between;
          height: 38px;
        }
      }
    }
    //模块3：点位
    .point {
      height: 340px;
      .point_body {
        display: flex;
        padding: 0 35px;
      }
      .point_chart {
        flex: 1;
        // background-color: #fff;
        margin-right: 20px;
      }
    }
  }
  // 容器中间
  .container_center {
    flex: 1;
    margin: 0 20px;
    // 模块4：迁徙图
    .migrate_title {
      height: 54px;
      font-size: 20px;
      font-weight: normal;
      display: flex;
      align-items: center;
      color: #fff;
      .icon-cube {
        color: #68d8fe;
        margin-right: 5px;
      }
    }
    .migrate_map {
      height: 530px;
      background-color: rgba(255, 255, 255, 0.2);
    }
    // 模块5：用户总量统计
    .user {
      height: 340px;
      margin-top: 20px;
      .user_body {
        padding: 0 35px;
        display: flex;
        .user_chart {
          flex: 1;
          background-color: #fff;
          margin-right: 20px;
        }
      }
    }
  }
  .container_right {
    margin-top: -30px;
    width: 552px;
    // 模块6：订单量
    .order {
      height: 148px;
      .order_list {
        display: flex;
        align-items: center;
        padding: 0 35px;
        .order_item {
          flex: 1;
          &:nth-child(1) .icon-dot {
            color: #ed3f35;
          }
          &:nth-child(2) .icon-dot {
            color: #eacf19;
          }
          .order_number {
            font-size: 26px;
            font-weight: normal;
            color: #fff;
          }
          .order_text {
            font-size: 14px;
            margin-top: 10px;
          }
        }
      }
    }
    // 模块7：销售额
    .sell {
      height: 248px;
      margin: 20px 0;
      display: flex;
      flex-direction: column;
      .sell_date {
        display: flex;
        font-size: 16px;
        color: #0bace6;
        li {
          margin-right: 30px;
          width: 24px;
          height: 24px;
          display: flex;
          justify-content: center;
          align-items: center;
          border-radius: 3px;
        }
        .active {
          color: #fff;
          background-color: #4c9bfd;
        }
      }
      .sell_chart {
        flex: 1;
        margin: 0 35px 20px;
        background-color: #fff;
      }
    }
    // 编组
    .panel_group {
      margin: 20px 0;
      display: flex;
      // 模块8：渠道
      .channel {
        flex: 1;
        height: 232px;
        margin-right: 20px;
        .channel_body {
          padding-left: 35px;
          .channel_list {
            display: flex;
            // flex 换行
            flex-wrap: wrap;
            .channel_item {
              width: 50%;
              margin-bottom: 10px;
              .channel_number {
                font-size: 30px;
                // 伪元素添加 %
                font-weight: normal;
                color: #fff;
                &::after {
                  content: "%";
                  font-size: 14px;
                  margin-left: 3px;
                }
              }
              .channel_text {
                margin-top: 5px;
              }
            }
          }
        }
      }
      // 模块9：进度
      .progress {
        flex: 1;
        height: 232px;
        .progress_chart {
          height: 90px;
          margin: 0 30px;
          background-color: #fff;
        }
        .progress_list {
          display: flex;
          justify-content: space-between;
          padding: 0 30px;
          .progress_item {
            margin-top: 5px;
            &:nth-child(1) .icon-dot {
              color: #6acca3;
            }
            &:nth-child(2) .icon-dot {
              color: #ed3f35;
            }
            .progress_number {
              font-size: 24px;
              color: #fff;
              font-weight: normal;
            }
            .progress_text {
              margin-top: 3px;
            }
          }
        }
      }
    }
    // 模块10：热榜
    .hot {
      height: 282px;
      display: flex;
      flex-direction: column;
      .hot_title {
        justify-content: space-between;
        .hot_title_more {
          font-size: 14px;
          width: 67px;
          height: 13px;
          display: flex;
          justify-content: center;
          align-items: center;
          color: #098dc2;
          background: url(../images/line.png) no-repeat;
        }
      }
      .hot_body {
        flex: 1;
        display: flex;
        padding: 0 35px 30px;
        .col_01 {
          flex: 1;
          display: flex;
          flex-direction: column;
          justify-content: space-evenly;
          .col_01_item {
            display: flex;
            align-items: center;
            &:nth-child(1) i {
              color: #d93f36;
            }
            &:nth-child(2) i {
              color: #68d8fe;
            }
            &:nth-child(3) i {
              color: #4c9bfd;
            }
            i {
              font-size: 40px;
              margin-right: 10px;
            }
          }
        }
        .col_02 {
          width: 155px;
          display: flex;
          flex-direction: column;
          .col_02_item {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 10px;
          }
          .active {
            background-color: #02133a;
            color: #a3c6f2;
          }
        }
        .col_03 {
          width: 155px;
          background-color: #021139;
          color: #52ffff;
          display: flex;
          flex-direction: column;
          .col_03_item {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 10px;
          }
        }
      }
    }
  }
}
.icon-down {
  color: #36be90;
}
.icon-up {
  color: #dc3c33;
}
